package com.lcl.jarvis.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.Size;

/**
 * <p>
 *
 * </p>
 *
 * @author licl
 * @since 2024-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("person_info_d")
@ApiModel(value="PersonInfoD", description="")
public class PersonInfoDDO extends Model<PersonInfoDDO> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "体重/身高")
    private Double bmi;

    @ApiModelProperty(value = "职业")
    private String career;

    @ApiModelProperty(value = "主任医师")
    private String chiefPhysician;

    private String createName;

    private Date createTime;

    @ApiModelProperty(value = "学历")
    private String education;

    @ApiModelProperty(value = "初婚年龄")
    private String firstMarriageAge;

    @ApiModelProperty(value = "身高")
    private Double height;

    @ApiModelProperty(value = "臀围")
    private Double hipline;

    @ApiModelProperty(value = "家庭住址")
    private String homeAddress;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "省份证号")
    private String idCard;

    @ApiModelProperty(value = "婚姻状况")
    private String maritalStatus;

    @ApiModelProperty(value = "民族")
    private String nation;

    @ApiModelProperty(value = "姓名")
    private String personName;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "预约时间")
    private Date preTime;

    @ApiModelProperty(value = "筛查id")
    private String queryId;

    @ApiModelProperty(value = "筛查单位")
    private String queryUnit;

    @ApiModelProperty(value = "复核医师")
    private String recheckPhysician;

    @ApiModelProperty(value = "性别")
    private String sex;

    private Date updateTime;

    @ApiModelProperty(value = "腰围")
    private Double waistline;

    @ApiModelProperty(value = "体重")
    private Double weight;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
